<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admenvboxtypenew.php,v $ 
 * $Date: 2005/08/29 14:53:43 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
$description=strip_tags($description,"<li><b><u><i>");
if($argid!=0){
        $query="UPDATE rportal_boxtype SET nom='$nom',description='$description',repertoire='$repertoire' WHERE id='$argid'"; 
        @rportalrequete($query) or rportalerreur($query,"?op=admenvboxtypeliste");
        //$query="UPDATE rportal_box SET repertoire='$repertoire' WHERE id_type='$argid'";
}else{
        $query="INSERT INTO rportal_boxtype (nom,description,repertoire) VALUES ('$nom','$description','$repertoire')";
}
@rportalrequete($query) or rportalerreur($query,"?op=admenvboxtypeliste");
header("Location: ?op=admenvboxtypeliste");
exit;
?>